<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="../inner/head.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<script type="text/javascript">
	function AddFavorite(sURL, sTitle) {   
    	try {   
        	window.external.addFavorite(sURL, sTitle);   
    	} catch (e) {   
        	try {   
            	window.sidebar.addPanel(sTitle, sURL, "");   
        	} catch (e) {   
            	alert("加入收藏失败，请使用Ctrl+D进行添加");   
        	}   
    	}   
	}     
  
	function SetHome(obj, vrl) {   
    	try {   
        	obj.style.behavior = 'url(#default#homepage)';   
        	obj.setHomePage(vrl);   
    	} catch (e) {   
        	if (window.netscape) {   
            	try {   
                	netscape.security.PrivilegeManager   
                        .enablePrivilege("UniversalXPConnect");   
            	} catch (e) {   
                	alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");   
            	}   
            	var prefs = Components.classes['@mozilla.org/preferences-service;1']   
                    .getService(Components.interfaces.nsIPrefBranch);   
            	prefs.setCharPref('browser.startup.homepage', vrl);   
        	}   
    	}   
	}  
	function search(){
		var name=$("#name").val();
		if(name=="Search this website...")
			name="";
		window.open("${basepath}/outer/product.jsp?type=searchtop&proname="+name,"_blank");
	}
</script>
</head>
<body>
	<div id="head">
		<div class="logo"></div>
		<div id="head_r">
			<div id="favorite">
				<a onclick="AddFavorite(window.location,document.title)" href="#">favorites</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="SetHome(this,window.location)" href="#">homepage</a></div><div id="search"><input type="text" onblur="this.value==''?this.value='Search this website...':null;" onfocus="this.value==this.defaultValue?this.value='':null;" value="Search this website..." class="box"  style="color:#898c95; font-family:Arial, Helvetica, sans-serif;" id="name" onKeyPress="if(event.keyCode==13)search()"/>
				<button class="btnt" title="Submit Search" onclick="search();">Search</button>
			</div>
		</div>
	</div>
	<div id="nav">
		<div id="nav_l"></div>
		<div id="nav_m">
			<ul>
				<li><a href="${basepath}/index.jsp">Home</a></li>
				<li class="line"></li>
				<li><a href="${basepath}/outer/about.jsp">About</a></li>
				<li class="line"></li>
				<li><a href="${basepath}/outer/product.jsp">Products</a></li>
				<li class="line"></li>
				<li><a href="${basepath}/outer/information.jsp">Information</a></li>
				<li class="line"></li>
				<li><a href="${basepath}/outer/service.jsp">Service</a></li>
				<li class="line"></li>
				<li><a href="${basepath}/outer/contactus.jsp">Contact us</a></li>
				<li class="line"></li>
			</ul>
		</div>
		<div id="nav_r"></div>
	</div>
</body>
